package com.lhd_gm.scheduledtasksystem.pojo;

import java.io.Serializable;
import java.util.List;

public class ShellTask implements Serializable {
    private String fileName;
    private String shell;
    private String jobType;
    private String description;
    private List<String> scriptArgs;
    private long timeout;
    private String workDir;
    private List<UniversalEntity> envVars;

    public ShellTask() {
    }

    public ShellTask(String fileName, String shell, String jobType, String description, List<String> scriptArgs, long timeout, String workDir, List<UniversalEntity> envVars) {
        this.fileName = fileName;
        this.shell = shell;
        this.jobType = jobType;
        this.description = description;
        this.scriptArgs = scriptArgs;
        this.timeout = timeout;
        this.workDir = workDir;
        this.envVars = envVars;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getShell() {
        return shell;
    }

    public void setShell(String shell) {
        this.shell = shell;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<String> getScriptArgs() {
        return scriptArgs;
    }

    public void setScriptArgs(List<String> scriptArgs) {
        this.scriptArgs = scriptArgs;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public String getWorkDir() {
        return workDir;
    }

    public void setWorkDir(String workDir) {
        this.workDir = workDir;
    }

    public List<UniversalEntity> getEnvVars() {
        return envVars;
    }

    public void setEnvVars(List<UniversalEntity> envVars) {
        this.envVars = envVars;
    }
}
